(while (set thiscpu (select n "68000" "68020" ""))
( (if (= thiscpu cpu)
(set defcpu n))
(set n (+ n 1))
))
(set cpu (select (askchoice
(prompt
"\nSelect CPU version of programs to install:")
(help
"Explanation of choices:\n"
" \"68000\" -- Select this CPU for computers a 68000 or 68010 microprocessor. If in doubt, this is the safe choice.\n"
" \"68020\" -- Select this CPU for computers a 68020 or better microprocessor. This allows the library to take advantage of features available in better processors.\n"
"\n"
@askchoice-help)
(choices "68000" "68020")
(default defcpu)
) "68000" "68020"))
(transcript "Installing for " cpu " CPU.")
)
; Install the main library
(procedure install-main
(if (= sharedlib-dir "NIL:")
(set sharedlib-dir ""))
(set sharedlib-dir (askdir
(prompt (cat
"In which drawer should the main " app-name " library be placed?") )
(help
" The " @app-name " library needs to reside in a place where "
"applications may find it when they try to access the library. "
"Shared libraries such as " @app-name " should normally be "
"installed in the standard \"LIBS:\" volume.\n"
"\n"
@askdir-help)
(default sharedlib-dir) ))
(transcript "Shared lib directory set to " sharedlib-dir)
(copylib
(source (tackon cpu (cat @app-name ".library")))
(dest sharedlib-dir)
(prompt (cat "\n\nInstalling \"" @app-name ".library\" to \""
sharedlib-dir "\""))
(help
"Description of library:\n"
" The main " app-name " shared library. This library is required.\n"
"\n"
@copylib-help)
(confirm) )
)
; Install the support libraries
(procedure install-suplibs
(if (= sharedlib-dir "NIL:")
(set sharedlib-dir ""))
(set sharedlib-dir (askdir
(prompt (cat
"In which drawer should the support " app-name " libraries be placed?") )
(help
" " app-name " comes with some support libraries which "
"may be used by applications and/or the example programs that "
"are included in the distribution. They are not, however, required "
"by the main library. These support libraries need to "
"reside in a place where applications can find them; "
"this should normally be \"LIBS:\", or the directory where the "
"main library is installed.\n"
"\n"
@askdir-help)
(default sharedlib-dir) ))
(transcript "Shared lib directory set to " sharedlib-dir)